<?if($this->errorMessage) {?>
    <h4 class="alert_error"><?=$this->errorMessage?></h4>
<? } ?>

<?if($this->isUpadate) {?>
    <h4 class="alert_success">Данные обновлены!</h4>
<? } ?>

<div class="form">
<form enctype="multipart/form-data" method="POST" action="<?$this->url(array('controller'=>'reviews', 'action'=>'edit'))?>">
    <input type="hidden" name="id" value="<?=$this->review['id']?>">
    <div><label>Имя: </label><input type="text" value="<?=$this->review['name']?>" name='name'></div>
    <div><label>Город:</label> <input type="text" value="<?=$this->review['city']?>" name='city'></div>
    <div><label>Телефон:</label> <input type="text" value="<?=$this->review['phone']?>" name='phone'></div>
    <div><label>Ссылка:</label> <input type="text" value="<?=$this->review['link']?>" name='link'></div>
    <div><label>Фото:</label> <input type="file" value="" name='photo'></div>
    <?if($this->review['small_photo_url']) {?>
        <img src="/<?=$this->review['small_photo_url']?>" />
            Удалить <input type="checkbox" name="is_delete" value="1">
    <? } ?>
    <div><label>Текст:</label> <textarea rows="5" cols="30" name="text"><?=$this->review['text']?></textarea></div>
    <div><label>Отобразить на сайте</label><input type="checkbox" value="1" name="is_visible"
        <?=($this->review['is_visible'] == 1) ? 'checked' : '' ?>></div>
    <input type="submit" name="submit" value="Редактировать">
</form>
</div>